One moment please...
 
 
Exact Financials   
 

How to: add document to purchase journal entry using Web Services - soapUI

Introduction

For general information on invoking Exact Financials Enterprise business logic web services see document 23.704.892.

Purchase journal entries can be created with linked documents in one action. Sometimes documents need to be added to an existing purchase journal entry. This document shows how to create a purchase journal entry (entity: atrsh-purchase) and then add a document (entity: stexob) as a separate action.

The following steps are involved:

  1. create journal entry
  2. find journal entry using key returned by create action
  3. update journal entry

1. create journal entry

The create operation is used to create a basic journal entry with minimum information (itmpAtrshPurchase and itmpAtrssPurchase):

The reponse provides the key of the journal entry (company, year, period, journal, sequence number) in otmpAtrshPurchase:

2. find journal entry

The find operation is used to find the journal entry by putting the key returned by the response of the create action (otmpAtrshPurchase) into itmpAtrshPurchase:

 

This returns the data of the journal entry (otmpAtrshPurchase, otmpAtrssPurchase) plus the original data of the journal entry (otmpAtrshPurchaseOriginal, otmpAtrssPurchaseOriginal):

 

3. update journal entry

The update operation is passed the data of the journal entry (otmpAtrshPurchase -> itmpAtrshPurchase, otmpAtrssPurchase -> itmpAtrssPurchase) plus the original data of the journal entry (otmpAtrshPurchaseOriginal -> itmpAtrshPurchaseOriginal, otmpAtrssPurchaseOriginal -> itmpAtrssPurchaseOriginal).

Note that elements returned with value xsi:nil="true" need to be removed from the input or an error will be thrown by the web service adapter similar to:

Error in SOAP Envelop: parsing error: org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:nil" associated with an element type "seqnr_atrsh_key" is not bound. (10913)


Finally add the document data (itmpStexob) and invoke the update operation:

The journal entry with document is now available in Exact:

 


Start page Exact Financials Enterprise > Connectivity > How to: add document to purchase journal entry 

     
 Main Category: Attachments & notes  Document Type: Support - On-line help
 Category:  Security  level: All - 0
 Sub category:  Document ID: 25.795.326
 Assortment:  Date: 07-12-2020
 Release: 7.10  Attachment:
 Disclaimer

Tags
No tags added